package mortal.game.scene.player.entity
{
	import Message.BroadCast.*;
	import Message.Db.Tables.*;
	import Message.Public.*;
	import com.gengine.core.frame.*;
	import com.gengine.game.core.*;
	import com.gengine.global.*;
	import com.gengine.utils.*;
	import com.mui.core.*;
	import com.mui.serialization.json.*;
	import flash.display.*;
	import flash.filters.*;
	import flash.geom.*;
	import flash.utils.*;
	import mortal.game.events.*;
	import mortal.game.manager.*;
	import mortal.game.mvc.*;
	import mortal.game.resource.*;
	import mortal.game.resource.info.*;
	//import mortal.game.scene.events.*;
	//import mortal.game.scene.layer.utils.*;
	import mortal.game.scene.map.*;
	import mortal.game.scene.modle.*;
	import mortal.game.scene.modle.data.*;
	import mortal.game.scene.player.*;
	import mortal.game.scene.player.info.*;
	//import mortal.game.scene.player.item.*;
	//import mortal.game.scene.player.type.*;
	//import mortal.game.scene.skill.*;
	import mortal.game.view.system.*;
	import mortal.mvc.core.*;
	
	public class SpritePlayer
	{
		protected var _bodyPlayer:GPlayer;
		private var _timer:FrameTimer;
		protected var _id:String;
		//protected var _titleSprite:TitleSprite;
		//protected var _entityInfo:EntityInfo;
		//protected var _speed:Speed;
		private var _selected:Boolean;
		private var _actionState:int = -1;
		private var _isForceUpdate:Boolean = false;
		protected var _isLayout:Boolean = false;
		private var _isLoop:Boolean = false;
		protected var _isShowTitle:Boolean = true;
		protected var _isShowLife:Boolean = true;
		protected var _isShowShadow:Boolean = true;
		private var _hitPoint:Point;
		private var _isTweening:Boolean = false;
		private var _actionTotalFrame:int = 0;
		//protected var _reserveJs:ResjsInfo;
		public var camp:int;
		public var career:int;
		public var sex:int;
		private var _isInitInfo:Boolean = false;
		protected var _shodowBitmap:Bitmap;
		public var distance:Number = 0;
		private var _entityID:String;
		//private var _talkText:TalkSprite;
		private var _attackPoint:Point;
		private var _stateMap:Dictionary;
		protected var _isDead:Boolean = false;
		private var _isAlpha:Boolean = false;
		public static var selectePlayerMask:Sprite;
		
		public function SpritePlayer()
		{
			this._hitPoint = new Point();
			this._shodowBitmap = new Bitmap();
			this._attackPoint = new Point();
			this._stateMap = new Dictionary();
			//this._speed = new Speed();
			//this._entityInfo = new EntityInfo();
			selectePlayerMask.mouseEnabled = false;
			selectePlayerMask.mouseChildren = false;
			//this.mouseEnabled = false;
			//this.mouseChildren = false;
			this._timer = new FrameTimer(1);
			if (this._isShowShadow)
			{
				//this._shodowBitmap.bitmapData = ModelData.Shadow;
				this._shodowBitmap.x = -28;
				this._shodowBitmap.y = -15;
				//this.addChildAt(this._shodowBitmap, 0);
			}
			this.initPlayers();
			this.createTitles();
			this.play();
		}
		
		private function initPlayers() : void
		{
			
		}
		
		private function createTitles() : void
		{
			
		}
		
		private function play() : void
		{
			
		}
	}
}